package com.wei.czz.common.vo.admin.user;

import com.wei.czz.common.jsr303.group.Update;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-06-04 17:37:17
 * className: UpdatePasswordVo 用户密码修改参数类
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class UpdatePasswordVo extends BaseEntity {

    /**
     * 用户主键
     */
    @NotNull(message = "用户主键不能为空", groups = { Update.class })
    private Long userId;

    /**
     * 旧密码
     */
    @NotBlank(message = "旧密码不能为空")
    private String oldPassword;

    /**
     * 新密码
     */
    @NotBlank(message = "新密码不能为空")
    @NotBlank(message = "新密码不能为空", groups = { Update.class })
    private String newPassword;

}
